<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>中国近代史科普</title>
    </head>
    <body>
      <style>
        /*全部样式*/
        html{
          font-family: "microsoft yahei,arial, helvetica, sans-serif";
          font-size: 16px;
          background-image: url('images/10.jpg'); /* 设置背景图片 */
          background-size: cover; /* 覆盖整个页面 */
          background-position: center; /* 居中显示 */
          background-attachment: fixed; /* 固定背景，不随滚动条滚动 */
        }
        *{
          margin: 0;
          padding: 0;
          list-style: none;
        }
        a{
          text-decoration: none;
          color: #000;
        }
        .auto{
          margin: 0 auto;
        }
        .clearfix::after{
          content: '';
          display: block;
          clear: both;
        }
        /* 网页样式 */
        .top1{
          height: 60px;
          background-color: rgb(200, 16, 16);
          opacity: 0.8;
        }
        .top1 li{
          width: 150px;
          height: 60px;
          line-height: 60px;
          text-align: center;
          float: left;
        }
        .top1 li a{
          color: #fff;
          display: block;
        }
        .top1 li a:hover{
          color: gold;
          font-weight: 700;
        }
        /* 导航链接高亮样式 */
        .top1 li a.active {
          color: gold;
          font-size: 20px;
          background-color: #ff6c6c;
          font-weight: 700;
        }
        .box{
        position: relative;
        width: 1200px;
        height: 500px;
        margin: 0 auto;
      }
      .images {
        position: absolute;
        width: 1200px;
        height: 500px;
      }
      .pimg {
      z-index: 0;
      position: absolute;
      width: 1200px;
      height: 500px;
      opacity: 0;
      transition: opacity 1s ;
    }
    .list {
      position: absolute;
      bottom: 15px;
      right: 15px;
      width: 220px;
      height: 40px;
      z-index: 3;
    }
    .oli {
      float: left;
      width: 40px;
      height: 40px;
      user-select: none;
      text-align: center;
      line-height: 40px;
      box-sizing: border-box;
      border: 1px solid #000;
      color: #000;
    }
    .oli~.oli{
      margin-left: 5px;
    }
    .oli:hover {
      cursor: pointer;
    }
    .addimg {
      z-index: 1;
      opacity: 1;
    }
    .addli {
      background-color: rgba(255,0,0,.5);
      color: #000;
    }
    .left,.right {
      z-index: 2;
      position: absolute;
      top: 50%;
      margin-top: -18px;
      width: 25px;
      height: 36px;
      cursor: pointer;
      user-select: none;
      background-color: rgba(254,254,254,.4);
      text-align: center;
      line-height: 36px;
      color: #fff;
      transition: background-color 1s, color 1s ;
    }
    .left {
      left: 0;
      overflow: hidden;
    }
    .right {
      right: 0;
      overflow: hidden;
    }
    .left::before{
      content: '';
      display: block;
      width: 15px;
      height: 15px;
      border-top: 2px solid #fff;
      border-right: 2px solid #fff;
      transform: rotate(-135deg);
      margin-top: 8px;
      margin-left: 6px;
    }
    .right::before{
      content: '';
      display: block;
      width: 15px;
      height: 15px;
      border-top: 2px solid #fff;
      border-right: 2px solid #fff;
      transform: rotate(45deg);
      margin-top: 8px;
      margin-left: 3px;
    }
    .cp2{
      width: 1200px;
      margin: 40px auto;
    }
    .cp2 h2{
      width: 180px;
      height: 60px;
      background-color:rgb(200, 16, 16);
      color: #fff;
      font-weight: 300;
      line-height: 60px;
      text-align: center;
      border-radius: 15px 15px 0 0;
     
    }
    .main3{
      width: 1000px;
      margin: 40px auto;
    }
    .main3 div{
      width: 242px;
      height: 400px;
      float: left;
    }
    .main3 div~div{
      margin-left: 10px;

    }
    .main3 div img{
      width: 180px;
      height: 252px;
    }
    .main3 div p:nth-of-type(1){
      font-weight: 600;
      font-size: 20px;
      margin: 30px 0 20px;
      color: #410000;
    }
    .main3 div p:nth-of-type(2){
      width: 175px;
      height: 35px;
      background-color: #f0f0f0;
      line-height: 35px;
      text-align: center;
      border-radius: 1px;
      border: 1px solid #ccc;
      color: rgb(200, 16, 16);
      margin-bottom: 15px;
      cursor: pointer;
      font-weight: 700;
    }
    .main3 div p:nth-of-type(3){
      font-size: 14px;
      color:  #cccccc;
    }
    .main4{
      width: 1000px;
      margin: 30px auto;
    }
    .main4 div{
      width: 475px;
      height: 330px;
      float: left;
      color: #000000;
      font-weight: 400;
      background-color: #f0f0f0;
      text-align: center;
    }
    .main4 div~div{
      margin-left: 50px;
    }
    .main4 div img{
      width: 475px;
      height: 300px;
    }

    .main5{
      width: 1250px;
      margin: 40px auto;
      position: relative;
    }
    .main5 div{
      width: 225px;
      height: 400px;
      margin-left: 25px;
      float: left;
      position: relative;
    }
    .main5 div~div{
      margin-left: 25px;

    }
    .main5 div img{
      width: 180px;
      height: 252px;
    }
    .main5 div p:nth-of-type(1){
      font-weight: 600;
      font-size: 16px;
      margin: 30px 0 20px;
    }
    .main5 div p:nth-of-type(2){
      width: 175px;
      height: 35px;
      background-color: #f0f0f0;
      line-height: 35px;
      text-align: center;
      border-radius: 1px;
      border: 1px solid #ccc;
      color: rgb(200, 16, 16);
      margin-bottom: 15px;
      cursor: pointer;
      font-weight: 700;
    }
    .main5 div p:nth-of-type(3){
      font-size: 14px;
      color: #cccccc;
    }
    /* 图片悬浮时的样式 */
    .main5 div img:hover {
      transition: transform 0.5s ease;
      transform: scale(1.5); /* 放大1.5倍 */
      z-index: 5; /* 确保放大的图片在顶层 */
    }

    .main5 div img.key-event-img {
      transition: transform 0.5s ease, filter 0.5s ease, opacity 0.5s ease;
      width: 180px;
      height: 252px;
      filter: blur(0px);
      opacity: 1;
    }
    .footer{
      height: 60px;
      line-height: 60px;
      text-align: center;
      background-color: rgb(200, 16, 16);
      color: #fff;
    }
   
    .cp3{
      width: 1200px;
      margin: 40px auto;
    }
    .cp3 h2{
      width: 180px;
      height: 60px;
      background-color:rgb(200, 16, 16);
      color: #fff;
      font-weight: 300;
      line-height: 60px;
      text-align: center;
      border-radius: 15px 15px 0 0;
     
    }
    .news, .announcement {
      width: 50%;
      float: left;
      padding: 20px;
      box-sizing: border-box;
      border-radius: 10px;
    }

    .news ul, .announcement ul {
      list-style: none;
      padding: 0;
    }

    .news ul li, .announcement ul li {
      margin-bottom: 10px;
    }

    .news ul li span, .announcement ul li span {
      float: right;
      color: #666;
      font-size: 14px;
    }

    .news a {
      display: block;
      margin-top: 10px;
      color: #000;
      text-align: right;
      text-decoration: none;
      font-size: 16px;
    }

    .announcement a {
      display: block;
      margin-top: 10px;
      color: #000;
      text-align: right;
      text-decoration: none;
      font-size: 16px;
    }

    .clearfix::after {
      content: "";
      display: table;
      clear: both;
    }
    .c2{
      background-color: #ff6c6c;
      border-radius: 10px;
    }
    .news li,.announcement li{
      border-bottom: 1px solid #909090;
    }
    .main6{
      width: 1000px;
      margin: 30px auto;
    }
    .main6 div{
      width: 475px;
      height: 330px;
      float: left;
      color: #000000;
      font-weight: 400;
      background: linear-gradient(to bottom right, #ff7e5f, #feea7b);
      text-align: center;
      border-radius: 15px;
    }
    .main6 div~div{
      margin-left: 50px;
    }
    .comment-container { 
      margin: 20px;
      padding: 10px;   
      border: 1px solid #ddd;  
      border-radius: 4px;
      /* 径向渐变（从外部向内） */
      background: radial-gradient(circle at 50% 50%,#e8ff8e, #ff9696);
    }
    .comment-list {
      list-style: none;
      padding: 0;
    } 
    .comment-list li {
      margin-bottom: 10px;
      padding: 10px;
      border: 1px solid #ff8ec8;
      border-radius: 4px;
      color: #f355e8;
    }  
    .comment-input {
      width: 98%; 
      padding: 10px; 
      margin-bottom: 10px;  
      border: 1px solid #ddd;  
      border-radius: 4px;  
    }
    .comment-submit {
      padding: 10px 20px;
      background-color: #ff0055;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
    } 
    .comment-submit:hover {  
      background-color: #0056b3;
    }
    h4{
      font-weight: 300;
    }
    .tu:hover{
      transition: transform 0.5s ease;
      transform: scale(1.2); /* 放大1.5倍 */
      z-index: 5; /* 确保放大的图片在顶层 */
    }
    .tu1:hover{
      transition: transform 0.5s ease;
      transform: scale(1.1); /* 放大1.5倍 */
      z-index: 5; /* 确保放大的图片在顶层 */
    }
      </style>
      <script>
        window.onload = function() {
          (function() {
            let oBox = document.querySelector('.box');
            let oImages = document.querySelector('.images');
            let oImg = oImages.querySelectorAll('.pimg');
            let oList = document.querySelector('.list');
            let oLi = oList.querySelectorAll('.oli');
            let len = oLi.length;
            let index = 0; // 从第一张图片开始
            let timer = null;
            let pause = true;
      
            // 设置定时器，自动切换图片
            timer = setInterval(() => {
              if (pause) {
                change((index + 1) % len);
              }
            }, 3000);
      
            oBox.onmouseenter = function() {
              pause = true; // 鼠标进入时，暂停自动切换
              clearInterval(timer);
            };
      
            oBox.onmouseleave = function() {
              pause = false; // 鼠标离开时，恢复自动切换
              timer = setInterval(() => {
                if (pause) return;
                change((index + 1) % len);
              }, 3000);
            };
      
            // 列表项点击事件，切换到对应的图片
            oLi.forEach((node, i) => {
              node.onclick = function() {
                change(i);
              };
            });
      
            // 左右箭头点击事件
            document.querySelector('.left').onclick = function() {
              change((index - 1 + len) % len);
            };
            document.querySelector('.right').onclick = function() {
              change((index + 1) % len);
            };
      
            function change(x) {
              oImg[index].classList.remove("addimg");
              oLi[index].classList.remove("addli");
              index = x;
              oImg[index].classList.add("addimg");
              oLi[index].classList.add("addli");
            }
          })();
          const navLinks = document.querySelectorAll('.top1 li a');
          // 为每个导航链接添加点击事件
          navLinks.forEach(link => {
            link.addEventListener('click', function() {
              // 移除所有链接的高亮样式      
              navLinks.forEach(link => {    
                link.classList.remove('active');    
              });   
              // 给当前点击的链接添加高亮样式   
              this.classList.add('active');  
            });  
          });
          navLinks[0].classList.add('active');
          const images = document.querySelectorAll('.main5 .key-event-img');
        images.forEach(img => {
            img.addEventListener('mouseover', function() {
                
                // 放大当前图片并保持清晰
                this.style.transform = 'scale(1.2)';
                this.style.filter = 'blur(0)';
                this.style.opacity = '1';
                // 虚化其他图片
                images.forEach(otherImg => {
                    if (otherImg !== this) {
                        otherImg.style.transform = 'scale(1)';
                        otherImg.style.filter = 'blur(2px)';
                        otherImg.style.opacity = '0.5';
                    }
                });
            });
            img.addEventListener('mouseout', function() {
                // 恢复所有图片的原始状态
                images.forEach(i => {
                    i.style.transform = 'scale(1)';
                    i.style.filter = 'blur(0)';
                    i.style.opacity = '1';
                });
                
            });
        });
        
        }
      </script>
      <script> 
        // 提交评论的函数
        function submitComment() {
          var commentList = document.getElementById('comment-list');
          var commentInput = document.getElementById('comment-input');
          var commentText = commentInput.value.trim();
          if (commentText === '') {
            alert('评论不能为空！');
            return;
          }
          // 创建新的评论列表项
          var newComment = document.createElement('li');
          newComment.innerText = commentText;
          // 创建删除按钮
          var deleteButton = document.createElement('button');
          deleteButton.innerText = '删除';
          deleteButton.onclick = function() {
            // 点击删除按钮时，移除对应的评论
            commentList.removeChild(newComment);
          };
          // 将删除按钮添加到评论列表项中
          newComment.appendChild(deleteButton);
          // 添加到评论列表
          commentList.appendChild(newComment);
          // 清空输入框
          commentInput.value = '';
        }
      </script>
        <ul class="top1 auto clearfix">
          <li><a href="index.html" class="nav-link">首页</a></li>
          <li><a href="part1/partone.html" class="nav-link">鸦片战争</a></li>
          <li><a href="part2/parttwo.html" class="nav-link">辛亥革命</a></li>
          <li><a href="part3/partthree.html" class="nav-link">五四运动</a></li>
          <li><a href="part4/Anti-JapaneseWar.html" class="nav-link">抗日战争</a></li>
          <li><a href="part5/partfive.html" class="nav-link">中华人民共和国成立</a></li>
          <li style="float: right;"><a href="part0/message.html" class="nav-link">留言</a></li>
        </ul>
        
        <div class="box clearfix">
            <div class="images">
                <a href="part0/zongshu.html"><img class="addimg pimg" src="images/33.jpg" alt=""></a>
                <a href="part0/shijian.html"><img class="pimg" src="images/12.jpg" alt=""></a>
                <img class="pimg" src="images/14.jpg" alt="">
                <img class="pimg" src="images/15.jpeg" alt="">
                <img class="pimg" src="images/17.jpg" alt="">
                <div class="left"></div>
                <div class="right"></div>
            </div>
            <ul class="list">
                <li class="addli oli">1</li>
                <li class="oli">2</li>
                <li class="oli">3</li>
                <li class="oli">4</li>
                <li class="oli">5</li>
            </ul>
        </div>
        <div class="cp2 auto">
          <h2>
              关键事件
          </h2>
      </div>
      <div class="main5 auto clearfix">
          <div>
              <img class="key-event-img" src="./images/42.jpg" alt="">
              <p>逐步沦为半殖民地半封建社会</p>
              <p>中国近代史的转折点</p>
              <p>中国开始寻求现代化的道路</p>
          </div>
          <div>
              <img class="key-event-img" src="./images/47.jpg" alt="">
              <p>结束了几千年的封建帝制</p>
              <p>民主共和的开端</p>
              <p>开启了民主共和的新纪元</p>
          </div>
          <div>
              <img class="key-event-img" src="./images/48.jpg" alt="">
              <p>马克思主义在中国的传播</p>
              <p>新民主主义革命转折点</p>
              <p>中国共产党的成立做准备</p>
          </div>
          <div>
              <img class="key-event-img" src="./images/49.jpg" alt="">
              <p>捍卫国家的独立和民族的尊严</p>
              <p>民族抗争与觉醒</p>
              <p>对世界反法西斯战争的胜利做出重要贡献</p>
          </div>
          <div>
              <img class="key-event-img" src="./images/46.jpg" alt="">
              <p>中国历史开启了新的篇章</p>
              <p>新中国的诞生</p>
              <p>中国人民从此站起来了</p>
        </div>
      </div>
        <div class="cp2 auto">
            <h2>
                岁月如歌
            </h2>
        </div>
        <div class="main3 auto clearfix">
            <div>
                <a href="part1/partone.html"><img src="./images/51.jpeg" class="tu" alt=""></a>
                <p>林则徐</p>
                <p>民族英雄与禁毒先驱</p>
                <p>严禁烟毒、奋起抗击英国侵略者</p>
            </div>
            <div>
                <a href="part2/people.html"><img src="./images/52.jpeg" class="tu" alt=""></a>
                <p>孙中山</p>
                <p>天下为公</p>
                <p>中国民主革命的伟大先行者</p>
            </div>
            <div>
                <a href="part4/yangjingyu.html"><img src="./images/53.webp" class="tu" alt=""></a>
                <p>杨靖宇</p>
                <p>草根充饥的民族英雄</p>
                <p>以身许党、以身报国</p>
            </div>
            <div>
                <a href="part5/person.html"><img src="./images/18.jpg" class="tu" alt=""></a>
                <p>毛泽东</p>
                <p>新中国的缔造者</p>
                <p>中国共产党的主要创始人之一</p>
            </div>
        </div>
        <div class="cp2 auto">
            <h2>
                博览之窗
            </h2>
        </div>
        <div class="main4 auto clearfix">
            <div>
                <a href="part0/zixun1.html">
                  <img src="./images/24.jpg" class="tu1" alt="">
                </a>
                <p>东北抗联精神</p>
            </div>
            <div>
              <a href="part0/zixun22.html">
                <img src="./images/34.jpg" class="tu1" alt="">
              </a>
                <p>长征精神</p>
            </div>
        </div>
        
      <div class="main6 auto clearfix">
        <div class="cp3 auto">
          <h2>
              历史珍闻
          </h2>
          <div class="news">
              <ul>
                  <a href="http://www.zgdsw.com/article/1197.html"><li>周恩来给大型歌舞《东方红》演职人员讲党史 - <span>2022年12期</span></li></a>
                  <a href="http://www.zgdsw.com/article/1189.html"><li>中国空中 “利剑”的跨越式腾飞 - <span>2019年11期</span></li></a>
                  <a href="http://www.zgdsw.com/article/1181.html"><li>千名号兵出太行 - <span>2022年10期</span></li></a>
                  <a href="http://www.zgdsw.com/article/1143.html"><li>皖南事变中新四军第3纵队突围历险记 - <span>2022年第3期</span></li></a>
                  <a href="http://www.zgdsw.com/article/936.html"><li>焦裕禄是如何建设家风的 - <span>2020年第1期</span></li></a>
                  <a href="http://www.zgdsw.com/article/803.html"><li>中国共产党是如何命名的 - <span>2019/01/29</span></li></a>
                  <a href="http://www.zgdsw.com/article/369.html"><li>陈士榘抗战中抓获第一个日军俘虏 - <span>2013/07/18</span></li></a>
                  <a href="http://www.zgdsw.com/article/371.html"><li>1976年9月悼念毛泽东纪实 - <span>2014/01/08</span></li></a>
              </ul>
              <a href="http://www.zgdsw.com/article/60_1.html">更多 &raquo;</a>
          </div>
        </div>
          
          <div class="cp3 auto">
            <h2>
                史海钩沉
            </h2>
            <div class="announcement">
              <ul>
                <a href="http://www.zgdsw.com/article/379.html"><li>“复活”的杨公素 - <span>2013/02/12</span></li></a>
                <a href="http://www.zgdsw.com/article/378.html"><li>1951年《毛泽东之歌》骤然停播的缘由 - <span>2014/06/19</span></li></a>
                <a href="http://www.zgdsw.com/article/377.html"><li>从遵义到苏联：李德在华后期活动考察 - <span>2014/02/11</span></li></a>
                <a href="http://www.zgdsw.com/article/376.html"><li>抗战时期中共中央缘何批准为刘伯承过五十大寿 - <span>2014/06/19</span></li></a>
                <a href="http://www.zgdsw.com/article/375.html"><li>毛泽东缘何没有出席斯大林葬礼 - <span>2013/09/26</span></li></a>
                <a href="http://www.zgdsw.com/article/374.html"><li>山东野战军外线出击与泗县失利 - <span>2013/08/15</span></li></a>
                <a href="http://www.zgdsw.com/article/373.html"><li>元帅和大将正史中记载的“九一三”事件 - <span>2013/02/08</span></li></a>
                <a href="http://www.zgdsw.com/article/371.html"><li>中共一大会场突遭搜查之谜 - <span>2013/08/16</span></li></a>
            </ul>
            <a href="http://www.zgdsw.com/article/61_1.html">更多 &raquo;</a>
            </div>
         </div>
      </div>
      <div id="comment-container" class="comment-container">
        <h3>交流区</h3>
        <h4>今日问题：抗日战争中，中国军队和人民展现出了哪些精神？</h4>
        <ul class="comment-list" id="comment-list">
          <!-- 评论区将在这里动态生成 -->
        </ul>
        <div>
          <textarea class="comment-input" id="comment-input" placeholder="写下你的评论..."></textarea>
          <button class="comment-submit" onclick="submitComment()">提交评论</button>
        </div>
      </div>
        <div class="footer auto">
            东北林业大学 © 2024 中国近代史科普
        </div>     
    </body>
</html>